//
//  DBFrameService.h
//  iphone.mobileoa
//
//  Created by 李亚春 on 13-5-23.
//  Copyright (c) 2013年 Epoint. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <sqlite3.h>
#import "EPConstants.h"
#import "DbUtil.h"

@interface DBFrameService : NSObject

//设置config表属性
+(void)setConfigValue:(NSString *)key value:(NSString *)value;

//根据key获取配置表属性
+(NSString *)getConfigValue:(NSString *)key;

//获取所有用户数
+(int)getUserCount;

//获取所有部门数
+(int)getOuCount;

//根据父部门guid获取子部门
+(NSMutableArray *)getWebInfoCategoryByParent:(NSString *)parentOuGuid;

//获取通知公告guid
+(NSString *)getTzggCategoryguid;

//根据父部门guid获取通讯录列表数组
+(NSMutableArray *)getContactsListByParentGuid:(NSString *)_parentguid;

//根据关键字检索通讯录
+(NSMutableArray *)getContactsListByKeyWord:(NSString *)_keyword;

//根据部门guid获取部门名称
+(NSString *)getOuNameByOuGuid:(NSString *)_ouguid;

//根据userguid获取用户详情
+(NSMutableDictionary *)getUserDetailByUserguid:(NSString *)_userguid;

//获取本地webservice地址
+(NSString *)getWebServiceUrl;

//根据部门数组获取部门名称
+(NSMutableArray *)getOunameArrayByGuids:(NSMutableArray *)guids;

//根据子部门guid获取父部门信息
+(NSMutableDictionary *)getParentOuByOuGuid:(NSString *)_ouguid;

+(NSMutableArray *)getParentOusByOuguid:(NSString *)_ouguid;

+(NSMutableArray *)getContactsListByParentGuid_PersonChoose:(NSString *)_parentguid;
@end
